//
//  StarsView.m
//  LiTingFeng
//
//  Created by xinxuan on 16/1/26.
//  Copyright © 2016年 Bullgo. All rights reserved.
//

#import "StarsView.h"

@implementation StarsView

-(void)addStarViewWithCount:(int)count{
    
    for (int i =0; i<5; i++) {
        UIImageView * starImage = [[UIImageView alloc]initWithFrame:CGRectMake(22 * i, 0, 20, 20)];
        if (i< count) {
            starImage.image = [UIImage imageNamed:@"星星"];
            
        }else{
        
            starImage.image = [UIImage imageNamed:@"星"];
        }
        [self addSubview:starImage];
    }


}

@end
